package com.mzj.saas.mservice.lock.entity;

import com.mzj.saas.mservice.sys.entity.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "saas_house_lock_open_log")
public class LockOpenLog extends IdEntity {

    @Basic
    @Column(name = "lock_id", nullable = true)
    private Long lockId; //智能锁绑定id
    
    @Basic
    @Column(name = "lock_audit_id", nullable = true)
    private Long lockAuditId; //授权信息id

    @Basic
    @Column(name = "house_id", nullable = true)
    private String houseId; //公租房id

    @Basic
    @Column(name = "open_mode", nullable = true)
    private Integer openMode; //开门方式0普通密码 1动态密码 5次数密码 9管理员密码 10一键开门  11普通卡 21指纹 25蓝牙

    @Basic
    @Column(name = "open_type", nullable = true)
    private Integer openType; //开门类型 0未知 1外开门 2内开门

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "user_id", nullable = true)
    private Long userId; //smart_lock_auth的id

    @Basic
    @Column(name = "user_property", nullable = true)
    private Integer userProperty; //开门人性质：0未知 1承租人 2同住人

    @Basic
    @Column(name = "community_name", nullable = true)
    private String communityName; //小区名称

    @Basic
    @Column(name = "build_name", nullable = true)
    private String buildName; //楼栋名称

    @Basic
    @Column(name = "unit_name", nullable = true)
    private String unitName; //单元名称

    @Basic
    @Column(name = "room_number", nullable = true)
    private String roomNumber; //房号

    @Basic
    @Column(name = "match_user_name", nullable = true)
    private String matchUserName; //承租人姓名
    
    @Basic
    @Column(name = "open_user_name", nullable = true)
    private String openUserName; //开门人姓名

    @Basic
    @Column(name = "open_time", nullable = true)
    private Date openTime; //开门时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getLockId() {
        return lockId;
    }

    public void setLockId(Long lockId) {
        this.lockId = lockId;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public Integer getOpenMode() {
        return openMode;
    }

    public void setOpenMode(Integer openMode) {
        this.openMode = openMode;
    }

    public Integer getOpenType() {
        return openType;
    }

    public void setOpenType(Integer openType) {
        this.openType = openType;
    }

    public Integer getUserProperty() {
        return userProperty;
    }

    public void setUserProperty(Integer userProperty) {
        this.userProperty = userProperty;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public String getMatchUserName() {
        return matchUserName;
    }

    public void setMatchUserName(String matchUserName) {
        this.matchUserName = matchUserName;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

	public Long getLockAuditId() {
		return lockAuditId;
	}

	public void setLockAuditId(Long lockAuditId) {
		this.lockAuditId = lockAuditId;
	}

	public String getOpenUserName() {
		return openUserName;
	}

	public void setOpenUserName(String openUserName) {
		this.openUserName = openUserName;
	}
}
